package com.ruoyi.crop.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.crop.api.domain.OutBound;
import com.ruoyi.crop.service.OutBoundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/out")
public class OutBoundController extends BaseController {

    @Autowired
    private OutBoundService outBoundService;

    @GetMapping("list")
    public TableDataInfo list(OutBound outBound){

        startPage();
        List<OutBound> list = outBoundService.listAll(outBound);
        return getDataTable(list);
    }




}
